'use client'

import { Card, CardContent } from '@/components/ui/card'
import { FileText, Compass, BarChart3 } from 'lucide-react'
import FXCanvas from '@/components/effect/FXCanvas'

export default function Features() {
  const features = [
    {
      icon: <FileText className="w-8 h-8 text-cyan-400" />,
      title: 'Partner-grade Analysis at Scale',
      desc: 'Transform every deck into a decision-ready memo.'
    },
    {
      icon: <Compass className="w-8 h-8 text-violet-400" />,
      title: 'Built on VC Principles',
      desc: 'Realistic optimism: excited by potential, rigorous about assumptions.'
    },
    {
      icon: <BarChart3 className="w-8 h-8 text-sky-400" />,
      title: 'Surgical, Methodical & Analytical',
      desc: 'Blends numbers with nuance; quantifies upside and execution risk.'
    }
  ]

  return (
    <div className="relative min-h-[92svh] h-auto w-full overflow-hidden flex items-center justify-center">
      <div className="section-accent accent-1 absolute inset-0 z-0 h-full w-full"></div>

      <div className="fx h-full w-full">
        <FXCanvas effect="constellations" />
      </div>

      <div className="inset-0 z-10 flex items-center justify-center">
        <div className="mx-auto">
          <div className="relative w-full py-28  overflow-hidden">
            {/* 文本内容 */}
            <div className="relative z-10 max-w-6xl mx-auto text-center px-6">
              <h2 className="text-[44px] font-semibold text-white mb-3">
                Partner-grade memos
                <br />
                <span className="bg-gradient-to-r from-[#8b5cf6] to-[#38bdf8] text-transparent bg-clip-text">
                  for all your decks
                </span>
              </h2>
              <p className="text-gray-400 text-[18px] mb-16">
                Supercharged. So you can decide who to meet faster and with confidence.
              </p>

              {/* 三个特性卡片 */}
              <div className="flex flex-wrap justify-center gap-[16px]">
                {features.map((f, i) => (
                  <Card
                    key={i}
                    className="group relative overflow-hidden bg-[#101622]
      border-solid border-[#1f2533] rounded-[14px] p-4 
      transition-all duration-500 ease-[cubic-bezier(0.4,0,0.2,1)]
      hover:-translate-y-[3px] hover:border-[#7C5CFF99] hover:border-2 hover:border-solid 
      w-full sm:w-[48%] lg:w-[32%] sm:aspect-square lg:aspect-square">
                    <CardContent className="flex flex-col items-start justify-center text-left p-8 space-y-4 h-full">
                      {/* 图标区 */}
                      <div
                        className="p-3 rounded-xl bg-gradient-to-br from-[#8b5cf6]/20 to-[#38bdf8]/20 
          transition-transform duration-300 ease-out group-hover:scale-110">
                        {f.icon}
                      </div>

                      <h3 className="text-lg font-semibold text-white transition-colors duration-300 group-hover:text-white">
                        {f.title}
                      </h3>

                      <p className="text-gray-400 text-sm leading-relaxed transition-colors duration-300 group-hover:text-gray-300">
                        {f.desc}
                      </p>
                    </CardContent>
                  </Card>
                ))}
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}
